package com.example.jinzproduct.controller.feign;

import com.example.commons.entity.DictDO;
import com.example.commons.entity.HonorUserDO;
import com.example.jinzproduct.server.DictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author mengzhichao
 * @create 2022-09-19-14:47
 */
@RestController
@RequestMapping("/jinZhiIndex/DictFeignController")
public class DictFeignController {

    @Autowired
    DictService dictService;

    @PostMapping("/findOneByKv")
    public DictDO findOneByKv(@RequestBody Object... params) {
        return dictService.findOneByKv(params);
    }

    @PostMapping("/selDicBy")
    public String selDicBy(@RequestBody Map map) {
        return dictService.selDicBy(map);
    }
}
